package com.ruoyi.project.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 培训公告对象 a_06_pub_notice
 * 
 * @author WorrilessGo
 * @date 2025-11-18
 */
public class A06PubNotice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String pubNoticeId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 培训公告内容 */
    @Excel(name = "培训公告内容")
    private String content;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 是否展示 */
    @Excel(name = "是否发布")
    private Long isEnabled;

    /** 发布时间 */
    @Excel(name = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;

    /** 发布人 */
    @Excel(name = "发布人")
    private String publishUser;

    /** 附件 */
//    @Excel(name = "附件")
    private String attachmentUrl;

    /**封面*/
    @Excel(name = "封面")
    private String coverUrl;

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }

    public String getCoverUrl() {
        return coverUrl;
    }

    public void setPubNoticeId(String pubNoticeId) 
    {
        this.pubNoticeId = pubNoticeId;
    }

    public String getPubNoticeId() 
    {
        return pubNoticeId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    public void setIsEnabled(Long isEnabled) 
    {
        this.isEnabled = isEnabled;
    }

    public Long getIsEnabled() 
    {
        return isEnabled;
    }

    public void setPublishTime(Date publishTime)
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime()
    {
        return publishTime;
    }

    public void setPublishUser(String publishUser) 
    {
        this.publishUser = publishUser;
    }

    public String getPublishUser() 
    {
        return publishUser;
    }

    public void setAttachmentUrl(String attachmentUrl) 
    {
        this.attachmentUrl = attachmentUrl;
    }

    public String getAttachmentUrl() 
    {
        return attachmentUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pubNoticeId", getPubNoticeId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("sort", getSort())
            .append("isEnabled", getIsEnabled())
            .append("publishTime", getPublishTime())
            .append("publishUser", getPublishUser())
            .append("attachmentUrl", getAttachmentUrl())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .toString();
    }
}
